package simulation;

import java.awt.Graphics2D;


/**
 * A nonfunctional Spring object that does not do anything.
 * 
 */
public class NullSpring extends Spring {

    /**
     * Creates a Spring with some fake inputs.
     */
    public NullSpring () {
        super(new Mass(0, 0, 0), new Mass(0, 0, 0), 0, 0);
    }

    /**
     * Does not paint anything on the screen because it is a null object.
     */
    @Override
    public void paint (Graphics2D pen) {
        // do nothing, because should not appear on screen
    }
}
